package ${groupId}.service.system.sysrole.dto;

import lombok.Data;

import java.util.Date;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

import io.swagger.v3.oas.annotations.media.Schema;

@Data
public class SysRoleUpdateItemReqDto {
	/**
	 * (sys_role)
	 */
	@Schema(description = "id")
	private Long id;
	/**
	 * 角色名称(sys_role)
	 */
	@Schema(description = "角色名称")
	@Size(min = 0,max = 20,message ="roleName字段超过限长（20）")
	@NotBlank(message = "角色名称不能为空(roleName)")
	private String roleName;
	/**
	 * 角色编码(sys_role)
	 */
	@Schema(description = "角色编码")
	@Size(min = 0,max = 20,message ="roleCode字段超过限长（20）")
	private String roleCode;
	/**
	 * (sys_role)
	 */
	@Schema(description = "createTime")
	private Date createTime;
	/**
	 * (sys_role)
	 */
	@Schema(description = "updateTime")
	private Date updateTime;
}